@extends('/admin/layout/index')
@section('css')
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="/bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
@endsection 
@section('content')
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span>促销商品</span>
    </div>
    <div class="mws-panel-body no-padding">
        <form action="/admin/goods/depreciateinsert" class="mws-form" method="post">
            {{csrf_field()}}
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">商品货号</label>
                    <div class="mws-form-item">
                        <select name="gid">
                            @foreach($data as $v)
                                <option value="{{$v['id']}}">{{$v['articlenum']}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">促销价格</label>
                    <div class="mws-form-item">
                        <input type="text" class="small" name="goodsdeprice" value="" style="width:220px">
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">促销主题</label>
                    <div class="mws-form-item">
                        <select name="theme">
                            <option value="秒杀">秒杀</option>
                            <option value="特惠">特惠</option>
                            <option value="团购">团购</option>
                            <option value="超值">超值</option>
                        </select>
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">促销标语</label>
                    <div class="mws-form-item">
                        <input type="text" class="small" name="slogan" value="" style="width:220px">
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">促销开始时间</label>
                    <div class=" mws-form-item controls input-append date form_datetime" data-date="1979-09-16T05:25:07Z" data-date-format="dd MM yyyy HH:ii p" data-link-field="dtp_input1">
                        <input size="16" type="text" name="starttime" value="" readonly>
                        <span class="add-on"><i class="icon-remove"></i></span>
                        <span class="add-on"><i class="icon-th"></i></span>
                    </div>
                    <input type="hidden" id="dtp_input1" value="" /><br/>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">促销结束时间</label>
                    <div class="mws-form-item controls input-append date form_datetime" data-date="1979-09-16T05:25:07Z" data-date-format="dd MM yyyy HH:ii p" data-link-field="dtp_input1">
                        <input size="16" type="text" value="" name="expiretime" readonly>
                        <span class="add-on"><i class="icon-remove"></i></span>
                        <span class="add-on"><i class="icon-th"></i></span>
                    </div>
                    <input type="hidden" id="dtp_input1" value="" /><br/>
                </div>
            </div>
            <div class="mws-button-row">
                <input type="submit" class="btn btn-danger" value="添加">
                <input type="reset" class="btn " value="重置">
            </div>
        </form>
    </div>      
</div>
<script src="/web/js/libs/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/bootstrap/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="/bootstrap/js/locales/bootstrap-datetimepicker.fr.js" charset="UTF-8"></script>
<script type="text/javascript">
    $('.form_datetime').datetimepicker({
        //language:  'fr',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		forceParse: 0,
        showMeridian: 1
    });
	$('.form_date').datetimepicker({
        language:  'fr',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0
    });
	$('.form_time').datetimepicker({
        language:  'fr',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 1,
		minView: 0,
		maxView: 1,
		forceParse: 0
    });
</script>
@endsection